from django.conf.urls.defaults import *
from feeds.feeds import AllFeeds
from feeds.views import getNewsItem, deletMonthBefore, mainview

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^buptfeeds/', include('buptfeeds.foo.urls')),
	(r'^$', mainview),
	(r'^feed/(?P<site>\w+)/$', AllFeeds()),
	(r'^feed/$', AllFeeds(), {'site':'all'}),
	(r'^crawler/$', getNewsItem),
	(r'^deletemonthbefore/$', deletMonthBefore),


    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
)
